﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Common;
using ExpenseSystem.Common.BaseModel;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Model;
using ExpenseSystem.Core.DataAddOn;
using System.Web;

namespace ExpenseSystem.Core.QuoteModules
{
    public abstract class RegionQuoteManager : INormalManager<RegionQuoteModel>
    {
        protected RegionQuoteManager()
        {
            profile = Authority.Authority.GetUserProfile();
        }
        protected string tran = HttpContext.Current.Items[Definition.SESSION_TRAN_STR].ToString();

        protected UserProfile profile;
        public static RegionQuoteManager CreateInstance()
        {
            return new RegionQuoteBaseManager();
        }
        protected NormalDataUpdater<RegionQuoteModel> RegionQuoteUpdater = new RegionQuoteUpdaterRegister().GetRegionQuoteUpdater();

        public abstract bool Delete( RegionQuoteModel RegionQuote,  out string message);
        public abstract bool DeleteById( long[] RegionQuoteId,  out string message);
        public abstract bool Save(RegionQuoteModel RegionQuote, out string message, params IAddable<RegionQuoteModel>[] addables);
    }
}
